package cn.mafangui.hotel.entity;

import java.util.Date;

public class Order {
    private Integer orderId;

    private Integer orderTypeId;

    private String payOrderId;

    private String orderType;

    private Integer userId;

    private String name;

    private String phone;

    private Integer roomTypeId;

    private String roomType;

    private Date orderDate;

    private Integer orderDays;

    private Integer orderStatus;

    private Double orderCost;

    private Date createTime;

    private Date updateTime;

    public String getPayOrderId() {
        return payOrderId;
    }

    public void setPayOrderId(String payOrderId) {
        this.payOrderId = payOrderId;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getOrderTypeId() {
        return orderTypeId;
    }

    public void setOrderTypeId(Integer orderTypeId) {
        this.orderTypeId = orderTypeId;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType == null ? null : orderType.trim();
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public Integer getRoomTypeId() {
        return roomTypeId;
    }

    public void setRoomTypeId(Integer roomTypeId) {
        this.roomTypeId = roomTypeId;
    }

    public String getRoomType() {
        return roomType;
    }

    public void setRoomType(String roomType) {
        this.roomType = roomType == null ? null : roomType.trim();
    }

    public Date getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }

    public Integer getOrderDays() {
        return orderDays;
    }

    public void setOrderDays(Integer orderDays) {
        this.orderDays = orderDays;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Double getOrderCost() {
        return orderCost;
    }

    public void setOrderCost(Double orderCost) {
        this.orderCost = orderCost;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Order() {
    }

    public Order(Integer orderId, Integer orderTypeId, String payOrderId, String orderType, Integer userId, String name, String phone, Integer roomTypeId, String roomType, Date orderDate, Integer orderDays, Integer orderStatus, Double orderCost, Date createTime, Date updateTime) {
        this.orderId = orderId;
        this.orderTypeId = orderTypeId;
        this.payOrderId = payOrderId;
        this.orderType = orderType;
        this.userId = userId;
        this.name = name;
        this.phone = phone;
        this.roomTypeId = roomTypeId;
        this.roomType = roomType;
        this.orderDate = orderDate;
        this.orderDays = orderDays;
        this.orderStatus = orderStatus;
        this.orderCost = orderCost;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Order(Integer orderTypeId, String orderType, Integer userId, String name, String phone, Integer roomTypeId, String roomType, Date orderDate, Integer orderDays, Integer orderStatus, Double orderCost) {
        this.orderTypeId = orderTypeId;
        this.orderType = orderType;
        this.userId = userId;
        this.name = name;
        this.phone = phone;
        this.roomTypeId = roomTypeId;
        this.roomType = roomType;
        this.orderDate = orderDate;
        this.orderDays = orderDays;
        this.orderStatus = orderStatus;
        this.orderCost = orderCost;
    }

    public Order(Integer orderId, Integer orderStatus) {
        this.orderId = orderId;
        this.orderStatus = orderStatus;
    }


    @Override
    public String toString() {
        return "Order{" +
                "orderId=" + orderId +
                ", orderTypeId=" + orderTypeId +
                ", payOrderId='" + payOrderId + '\'' +
                ", orderType='" + orderType + '\'' +
                ", userId=" + userId +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", roomTypeId=" + roomTypeId +
                ", roomType='" + roomType + '\'' +
                ", orderDate=" + orderDate +
                ", orderDays=" + orderDays +
                ", orderStatus=" + orderStatus +
                ", orderCost=" + orderCost +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
